<template>
  <div>
    <h1>params参数----{{ $route.params.keyWord }}---------{{ keyWord }}</h1>
    <h1>query参数----{{ $route.query.k }}======={{ k }}</h1>
  </div>
</template>

<script>
export default {
  props: ['keyWord', 'k'],
  // 路由组件可以传递props
  data() {
    return {

    }
  },
  components: {},
  created() { },
  mounted() { },
  methods: {}
}
</script>
<style scoped></style>
